import React from "react";
import Taro from "@tarojs/taro";
import { View, Button } from "@tarojs/components";
import { ImageView, UploadImage } from "../../components";

const Avatar = () => {
  return (
    <View className="avatar-container">
      <Button
        onClick={() => {
          Taro.navigateTo({ url: "/pages/accountInfo/index" });
        }}
      >
        跳转
      </Button>
      {/* <UploadImage /> */}
      <ImageView
        width="100px"
        height="100px"
        round={false}
        src={
          "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww3.sinaimg.cn%2Fmw690%2Fa19b4357gy1gtncqp5qwpj20j60j6gnu.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633363292&t=184ffcc8193052c5f3a656a4254b89bf"
        }
      />
    </View>
  );
};

class PersonPage extends React.Component {
  render() {
    return (
      <View>
        <Avatar />
      </View>
    );
  }
}
export default PersonPage;
